#!/usr/bin/env python
#
# for statement
#
# http://www.upriss.org.uk/python/session4.html
# gb 20110819

##    4.1) Modify the counter program from above using a for loop so that it
##    asks the user for five guesses and then stops. Use "break" to
##    terminate the for loop as soon as the correct number is guessed.

lucky_number = 24
pogingen = 5
for counter in range(pogingen):
    n = input("(Poging {} van {}) - Geef je lucky_number: ".format(counter+1, pogingen))
    if int(n) == lucky_number:
        print("lucky_number")
        break
